package homework0306;

import java.io.File;

public class ListFilesDemo {
    public static void main(String[] args) {
        File dir=new File(".");//表示当前目录
        File[] subs=dir.listFiles();
        System.out.println(subs.length);
        for (File sub:subs){
            System.out.println(sub.getName());
        }


    }
}
